package cn.bxc.config;

import cn.bxc.listener.OrderPaySuccessListener;
import com.google.common.eventbus.EventBus;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author bxc
 * @date 2025/6/9 15:31
 **/
@Configuration
public class EventBusConfig {

    @Bean
    public EventBus eventBusListener(OrderPaySuccessListener listener){
        EventBus eventBus = new EventBus();
        eventBus.register(listener);
        return eventBus;
    }
}
